package com.hspedu.extent_;

public class Extends {

    public static void main(String[] args) {
//        小学
        Pupil pu = new Pupil();
        pu.name = "小明";
        pu.age= 15;
        pu.testing();
        pu.setScore(60);
        pu.showInfo();

//        大学
        Graduate gra = new Graduate();
        gra.name ="金角大王";
        gra.age=24;
        gra.testing();
        gra.setScore(100);
        gra.showInfo();
        
    }

}
